using Doc.CodeSamples.Tests;
using Unity.Mathematics;
using static EntityManager;
public class ResourceManager
{
    public static void LoadObjectToEntity(int id, float3 pos, float scale = 1)
    {
        RefAction<Spawner> refAction = (ref Spawner spawner) =>
        {
            if (spawner.id == id)
            {
                spawner.count++;
                spawner.position = pos;
                spawner.scaleDelta = scale;
            }
        };
        UpdateComponent(ref refAction);
    }
}
